package v2;

import old.House;

/**
 * Created with IntelliJ IDEA
 * Description
 * User：chenshu
 * Date：2024-03-11
 * Time：21:19
 */
public class HouseV2 {
    private RoofV2 roofV2;
    public HouseV2(RoofV2 roofV2) {
        this.roofV2 = roofV2;
    }

    public void build() {
        roofV2.build();
        System.out.println("HouseV2 construction completed.");
    }

    public static void main(String[] args) {
        HouseV2 houseV2 = BeanFactory.getBean();
        houseV2.build();
    }
}
